// 解析Blob数据
export async function parseStreamData(data: Blob) {
  return new Promise((resolve) => {
    const reader = new FileReader()
    reader.onload = function () {
      const str = reader.result as string
      const content = JSON.parse(str)
      resolve(content)
    }
    reader.readAsText(data)
  })
}
